<?php
class Rss extends Model {
	function Rss() {
		parent::Model();
	}
	
	function getRecentFeed() {
		$this->db->select('a.*,b.*');
		$this->db->from('ticket a,product b');
		$this->db->where('a.prod_id = b.prod_id');
		$this->db->order_by('ticket_id','desc');
		$this->db->limit('50');
		return $this->db->get();
	}
	
	
}
?>